import requests

from com.yh.oa.utils.utils import oaHost


class User():

    @staticmethod
    def login(username,password):
        user = {"username":username,"password":password}
        loginResp = requests.post(oaHost+"/login/noCode",json=user)
        return loginResp